package com.dameng.jianyouquan.mvp.presenter.impl;

import android.content.Context;

import com.dameng.jianyouquan.base.mvpBase.BasePresenterImpl;
import com.dameng.jianyouquan.mvp.model.ChooseIdentityModel;
import com.dameng.jianyouquan.mvp.presenter.ChooseIdentityPresenter;
import com.dameng.jianyouquan.mvp.view.view.ChooseIdentityView;

public class ChooseIdentityPresenterImpl extends BasePresenterImpl<ChooseIdentityView> implements ChooseIdentityPresenter, ChooseIdentityModel.OnChooseListener {

    private ChooseIdentityView mView;

    private ChooseIdentityModel mModel;


    public ChooseIdentityPresenterImpl(ChooseIdentityView mView, ChooseIdentityModel mModel) {
        this.mView = mView;
        this.mModel = mModel;
    }

    @Override
    public void ChooseIdentity(Context context, String type) {
        mModel.ChooseIdentity_Model(context, type, this);
    }

    @Override
    public void ChooseSuccess(String type) {
        mView.chooseSuccess(type);
    }

    @Override
    public void ChooseFail(String msg) {
        mView.chooseFail(msg);
    }
}
